with open('count1/text_file.txt', 'r') as file:

    lines = file.readlines()


filtered_lines = []
for line in lines:
    if ":" in line:
        parts = line.split(":")
        filtered_lines.append(parts[0] + " " + parts[1].strip() + "\n")
    else:
        filtered_lines.append(line)

with open('filtered_file.txt', 'a') as file:
    file.writelines(filtered_lines)

